<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
	<script type="text/javascript">
		//break 如果在循环中使用，表示跳出所有循环，不会再执行循环
		for (let i = 0; i < 200; i++) {
			console.log(i)
			if (i == 5) {
				break;
			}
		}
		//continue 跳出当前循环，执行下一次循环
		for (let i = 0; i < 100; i++) {
			if (i == 5) {
				continue;
			}
			console.log(i)
		}
	</script>
</body>
</html>